-- GENERATED SPELL FOR [Mezzir the Howler] --


function spell0_10197(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(15971,pUnit)
pUnit:RegisterEvent('Sorts_10197', 30268, 1)
end

function spell1_10197(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(3131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10197', 250, 1)
end

function spell2_10197(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_10197', 5312, 1)
end

function Sorts_10197(pUnit, Event)
local choix_sorts_10197 = math.random(0, 2)
if choix_sorts_10197 == 0 then
pUnit:RegisterEvent('spell0_10197', 1, 1)
end
if choix_sorts_10197 == 1 then
pUnit:RegisterEvent('spell1_10197', 1, 1)
end
if choix_sorts_10197 == 2 then
pUnit:RegisterEvent('spell2_10197', 1, 1)
end
end

function mob10197_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10197', math.random(1500, 3000), 1)
end

function mob10197_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10197_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10197_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10197, 1, 'mob10197_Action')
RegisterUnitEvent(10197, 2, 'mob10197_Leave')
RegisterUnitEvent(10197, 3, 'mob10197_Kill')
RegisterUnitEvent(10197, 4, 'mob10197_Die')
